<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\PhotosController;
use App\Http\Controllers\PhotoUserFacesController;
use App\Http\Controllers\TestController;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});

Route::get('/test', function () {
    phpinfo();
});
Route::any('/test/test', [TestController::class, 'csv']);//用来写一些demo
##================================================================================


Route::post('/photo/add', [PhotosController::class, 'create']);//写入照片数据
Route::post('/photo/add/many', [PhotosController::class, 'createMany']);//写入照片数据Many

Route::get('/photo/list', [PhotosController::class, 'list']);//查询关键字模糊查询
Route::get('/photo/specific/list', [PhotosController::class, 'specificList']);//关键字精确搜索
Route::post('/photo/user/face/add', [PhotoUserFacesController::class, 'create']);//写入照片
Route::post('/photo/user/face/list', [PhotoUserFacesController::class, 'list']);//查询
Route::post('/photo/user/face/first', [PhotoUserFacesController::class, 'first']);//查询
Route::post('/photo/no/list', [PhotosController::class, 'listNo']);//多参赛号模糊查询

